Fix longitudinal functional template#331
Open
kaitj wants to merge 12 commits into
Open
Conversation
82e1663 to
fd58e3f
Compare
fd58e3f to
06929ef
Compare
2217809 to
11b7722
Compare
nx10
reviewed
May 8, 2026
nx10
reviewed
May 8, 2026
nx10
reviewed
May 8, 2026
nx10
reviewed
May 8, 2026
nx10
reviewed
May 8, 2026
nx10
reviewed
May 8, 2026
nx10
reviewed
May 8, 2026
a864f0b to
318ae42
Compare
318ae42 to
da9e13b
Compare
Templates for different takss _could_ be different resolutions. This refactors the resampling such that a template is generated per task for the longitudinal workflow.
da9e13b to
6608565
Compare
nx10
reviewed
May 11, 2026
nx10
reviewed
May 11, 2026
nx10
reviewed
May 11, 2026
nx10
reviewed
May 11, 2026
- Update stale docstring - Use "ents['task']" instead of filtering for - Address de-duping via assertion of grid for unique file paths - Fix resampling order for mask
7d1c2d2 to
b051f13
Compare
b051f13 to
35ad7b1
Compare
nx10
reviewed
May 18, 2026
nx10
reviewed
May 18, 2026
nx10
reviewed
May 18, 2026
nx10
reviewed
May 18, 2026
nx10
reviewed
May 18, 2026
9a9a9d8 to
6a3ef8d
Compare
- Removed check for uniqueness of bold dataframe - Update stale docstring: `bold_ref` -> `bold_files` - Wrap task with `bids_safe_label` when calling `tpl.save` - Compare affines using `np.allclose` due to floating point precision - Use a BoldKey NamedTuple as key to unique bold files
6a3ef8d to
0cdaed6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generate a longitudinal template with bold resolution after the initial creation from anatomical data. This will be used as the reference image in downstream longitudinal functional processing.
This makes use of the first bold image found to extract the resolution. Another possibility is to resample it to a fixed resolution (potentially user provided), but this can be a downstream feature and will not be included in this PR.
Closes #330